LanDiscovery

class LanDiscovery(site: Site, links: WebSocketLinks, wsPort: Int, beaconPort: Int = Beacons.PORT, group: String = Beacons.GROUP, interval: Int)

The sites of the local network found and linked to site (see Beacons), on Node.js: its beacons sent over UDP multicast, to group on beaconPort, every interval milliseconds, with the port of the WebSocket server of links, wsPort. Neither the beacons nor their socket keep Node.js running.

Constructors

Link copied to clipboard
constructor(site: Site, links: WebSocketLinks, wsPort: Int, beaconPort: Int = Beacons.PORT, group: String = Beacons.GROUP, interval: Int)

Functions

Link copied to clipboard
fun close()

Stops announcing the site and finding the others: the links opened stay

Link copied to clipboard

Starts announcing the site and finding the others